//
//  SellerInfoView.m
//  欢乐美食
//
//  Created by Mac on 15/7/18.
//  Copyright (c) 2015年 遇水. All rights reserved.
//

#import "SellerInfoView.h"
#import "MSBusiness.h"
#import "MSDeals.h"

@interface SellerInfoView()

@property (weak, nonatomic) IBOutlet UILabel *sellerName;   //商户名称

@property (weak, nonatomic) IBOutlet UILabel *sellerAddress;  //商户地址

- (IBAction)call:(id)sender;

@end

@implementation SellerInfoView


-(void)setDeal:(MSDeals *)deal
{
    _deal = deal;
    if (deal == nil || deal.businesses.count == 0) return;
    
    MSBusiness *business = deal.businesses[0];
    self.sellerName.text = business.name;
    self.sellerAddress.text = business.address;
    
}

- (IBAction)call:(id)sender {
    
}

@end
